//配置axios请求的工具类
import axios from 'axios'
import auth from "~/utils/auth"

// 创建axios实例
const service = axios.create({
    // baseURL: "http://192.168.74.131:7300/mock/5b51a3e4f38a30139f11cd1c", // api的base_url
    baseURL: "http://2zmkb8.natappfree.cc", // api的base_url
    timeout: 15000, // 请求超时时间
    headers:{"Authorization":"Bearer "+auth.getUser().token}
})

export default service